package com.favccxx.message.infrastructure.util.jackson;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.apache.commons.lang3.StringUtils;

import java.util.List;
import java.util.Map;

public class JsonFlatUtil {

    /**
     * 提取JSON数据中的格式提取为Map
     *
     * @param data JSON数据
     * @return Map 结构
     */
    public List<Map<String, Object>> flattenData(String data) {
        if (StringUtils.isBlank(data)) {
            return null;
        }


        return null;
    }


    public void readData(String expression) {
        ObjectMapper mapper = new ObjectMapper();

    }


    public String getFlatternData() {
        return null;
    }
}
